package com.zp.self.springboot.自动装配.ImportSelector接口;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;


// selectImports 返回 Person 的全类名，会加载到IOC容器中
public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.zp.self.springboot.自动装配.ImportSelector接口.Person"};
    }

}

